﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Globalization;

using ECCIT;
using OgilvyOne.Sharan.Model;
using OgilvyOne.Sharan.IDAL;
using OgilvyOne.Sharan.DALFactory;

namespace OgilvyOne.Sharan.BLL
{
    public class WeiboRelationBLL
    {
        public List<long?> GetFriendWeiboUserIDs(long? uid)
        {
            List<long?> ids = null;
            try
            {
                ids = WeiboRelationDALFactory.Create().GetFriendWeiboUserIDs(uid);
            }
            catch (Exception ex)
            {
                ids = null;
            }

            return ids;
        }

        public ResultInfo Save(long? uid, List<long?> friendIDs)
        {
            ResultInfo result = WeiboRelationDALFactory.Create().Save(uid, friendIDs);
            return result;
        }
    }
}